package com.kdd.campus.sh.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/****
 * @Author:shenkunlin
 * @Description: es中的实体
 * @Date 2019/6/14 19:13
 *****/
@Data
@ToString
@Document(indexName = "campus-sh" , type = "product")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ESProductInfo implements Serializable{

	@ApiModelProperty(value = "商品id",required = true)
	@Id
	private Long pid;

	private Long uid;

	@ApiModelProperty(value = "商品图片")
	private String productImg;

	@ApiModelProperty(value = "商品名称")
	private String productName;

	@ApiModelProperty(value = "商品价格")
	private Double price;

	@ApiModelProperty(value = "用户头像")
	private String userImg;

	@ApiModelProperty(value = "用户昵称")
	private String username;

	@ApiModelProperty(value = "是否是全新")
	private String isNew;

	@ApiModelProperty(value = "是否送货上门")
	private String isHomeDelivery;

}
